Set textStyle of background field "Import Text" to plain
Set textFont of background field "Import Text" to Monaco
Set textSize of background field "Import Text" to 9
end openCard
on idle
put the long date into field "Date"
put the time into field "Time"
pass idle
end idle
-- part contents for background part 15
----- text -----
Friday, September 11, 1987
-- part contents for background part 16
----- text -----
11:09 PM
-- part contents for background part 19
----- text -----
HyperCard Text File Importer V1.1
A simple stack with text file Open, Save, and Save as... & Print capabilities. A New or Save as... text file will be saved using the file name & path entered unless changed.
I.E. Hard Disk:Document folder:text file
Should be used only with small text files up to 16,384 bytes. Larger files will be opened but the end of the file will be truncated and only the displayed file will be saved. Thought this stack would be useful to those people, like me, who don't have a HyperTalk manual yet and wish to look at other's scripts to get ideas. Other notes in the script report.
Click the Script button to clear the text window and show the entire stack script. Click on "Remove Script Report" below to permanently remove the script text & button to compact the script size by about 4K.
Have Fun!
Dick Van Hooft
CS: 71310,2130
GEnie: D.VANHOOFT
9/11/87 -Remove Script Report-
-- part contents for background part 21
----- text -----
Enter file name & path to save text file
-- part contents for background part 28
----- text -----
SCRIPTS FOR STACK: Importer V1.1 - Dick Van Hooft - 9/11/87
Script Report courtesy of "Script Report by Eric Alderman"
Notes - Uses XCFN resource Get FileName() for Open.
Shortcuts for selecting menubar (option-spacebar toggles)
click on left side of file name header to show menubar
ckick on right side of file name header to hide menubar